﻿using Edu.Entitys;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Application.Services;
using Volo.Abp.Identity;

namespace Edu.Abstracts
{
    [Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
    [TypeFilter(typeof(AchievementFilterAttribute))]
    public abstract class WeChatAppServiceBase : ApplicationService
    {

        protected IdentityUser MapToIdentityUser(AppUser appUser)
        {
            return ObjectMapper.Map<AppUser, IdentityUser>(appUser);
        }

    }
}
